projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97961ed
)
lib: Fix OSTREE_CHECK_VERSION()
author
Colin Walters
<walters@verbum.org>
Tue, 28 Mar 2017 19:23:14 +0000
(15:23 -0400)
committer
Atomic Bot
<atomic-devel@projectatomic.io>
Tue, 28 Mar 2017 20:41:28 +0000
(20:41 +0000)
Actually trying to use this in rpm-ostree, it kept returning successfully when I
didn't expect it to... The first conditional was always succeeding even when I
was asking for a newer minor.
Closes: #766
Approved by: jlebon
src/libostree/ostree-version.h.in
patch
|
blob
|
history
diff --git
a/src/libostree/ostree-version.h.in
b/src/libostree/ostree-version.h.in
index 8a4776d88dab0e6ed7cdf486fc2c2ff7ad9df8ab..7d775cc29f5a2680c0beba6f7333cbb6195231fc 100644
(file)
--- a/
src/libostree/ostree-version.h.in
+++ b/
src/libostree/ostree-version.h.in
@@
-78,5
+78,5
@@
* of ostree is equal or greater than the required one.
*/
#define OSTREE_CHECK_VERSION(year,release) \
- (OSTREE_YEAR_VERSION >
=
(year) || \
+ (OSTREE_YEAR_VERSION > (year) || \
(OSTREE_YEAR_VERSION == (year) && OSTREE_RELEASE_VERSION >= (release)))